'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 联盟科技
 * @author sundbcn@gmail.com (sun debing)
 */

var unionTechDonated = require('./unionTech/unionTechDonated.js');
var setDonated = require('./unionTech/setDonated.js');
var cleanDonatedTime = require('./unionTech/cleanDonatedTime.js');

module.exports = function (app) {
    return new Handler(app);
};

var Handler = function (app) {
    this.app = app;
};

/**
 * 联盟科技捐增
 */
Handler.prototype.unionTechDonated = function (msg, session, next) {
    unionTechDonated(msg, session, next);
};

/**
 * 设置联盟科技奖励
 */
Handler.prototype.setDonated = function (msg, session, next) {
    setDonated(msg, session, next);
};

/**
 * 清除冷却
 */
Handler.prototype.cleanDonatedTime = function (msg, session, next) {
    cleanDonatedTime(msg, session, next);
};
